package com.zx._10_设计模式.创建型模式.单例模式;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class TestFun {

    public static void main(String[] args) {
        int thread = 50;
        ExecutorService pool = Executors.newFixedThreadPool(thread);
        for (int i = 0; i < thread; i++) {
            pool.execute(() -> {
                System.out.println(Singleton1.getInstance());
            });
        }
    }

}
